﻿using EntityModel;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private ApiContext _context;
        public TestController(ApiContext acontext)
        {
            _context = acontext;
        }
        [HttpGet]
        public IList<EntityUser> Git()
        {
            return _context.EntityUsers.Where(s => s.Name == "zhangsna").ToList();
        }
    }
}
